@import '@/lib/reset.scss';

.top {
  @include rect(100%, 230px);
  @include background-color(#ffffff);
  padding: 30px 0 40px 0;
  position: relative;
  .userImg {
    @include rect(160px, 160px);
    background-size: 160px 160px;
    float: left;
    margin-right: 48px;
    img {
      @include rect(100%, 100%);
      border-radius: 50%;
    }
  }
  h1 {
    font-size: 34px;
  }
  p {
    color: #909090;
    font-size: 12px;
  }
  .btns {
    position: absolute;
    right: 0;
    top: 30px;
    width: 166px;
    height: 160px;
    text-align: center;
    .button {
      border: none;
      color: #909090;
      font-size: 12px;
      background-color: #ffffff;
      padding: 2px;
      &:hover {
        color: #ffffff;
        background-color: #909090;
      }
    }
    .follow {
      padding: 15px 10px;
      background: #F5F6F5;
      margin-top: 70px;
      li {
        display: inline-block;
        width: 68px;
        height: 38px;
        p {
          color: #333;
          font-size: 12px;
        }
        span {
          color: #DD3915;
          font-weight: 700;
          font-size: 16px;
        }
      }
      li:nth-of-type(1) {
        border-right: 1px solid #909090;
      }
    }
  }
}
.headar_nav {
  @include rect(100%, 48px);
  margin-bottom: 35px;
  ul {
    @include rect(100%, 100%);
    background-color: #f5f6f5;
    li {
      float: left;
      text-align: center;
      line-height: 48px;
      background-color: #f5f6f5;
      border-right: 2px solid #fff;
      a {
        color: #222;
        padding: 14px 22px;
        font-size: 16px;
        &:hover, &.active {
          color: #fff;
          background-color: #DD3915;
          border: none;
        }
      }
    }
    li:nth-of-type(6) {
      float: right;
      border: none;
    }
    li:nth-of-type(7) {
      float: right;
      border-left: 2px solid #fff;
    }
  }
}
// 默认页样式
.cook {
  width: 100%;
  min-height: 200px;
  h2{
    width: 100%;
    height: 33px;
    line-height: 33px;
    margin: 18px 0;
    font-size: 18px;
    font-weight: 700;
    text-indent: 5px;
  }
  .cook_list {
    width: 100%;
    ul {
      width: 1080px;
      li {
        @include rect(280px, 295px);
        float: left;
        margin: 0 80px 30px 0;
        border: 1px solid #f3f3f3;
        img {
          @include rect(280px, 216px);
          cursor: pointer;
        }
        a {
          @include rect (100%, 28px);
          font-size: 16px;
          font-weight: 400;
          line-height: 28px;
          color: #222;
          display: inline-block;
          margin-top: 20px;
          text-indent: 10px;
        }
        span {
          height: 14px;
          line-height: 14px;
          color: #909090;
          font-size: 12px;
          text-indent: 5px;
          display: inline-block;
        }
        .sp1 {
          margin-left: 5px;
        }
        .sp2 {
          padding-right: 5px;
          border-right: 1.5px solid #909090;
        }
        .uid {
          color: #909090;
          font-size: 12px;
          margin: 0 5px;
          display: inline;
          &:hover {
            background: #909090;
            color: #fff;
          }
        }
      }
    }
  } 

}
//菜谱页样式
.book {
  @include rect (100%, auto);
  button {
    @include rect (105px, 42px);
    line-height: 42px;
    text-align: center;
    border: none;
    background: #dd3915;
    color: #fff;
    font-size: 15px;
    float: right;
    cursor: pointer;
  }
  .cont {
    @include rect (920px, auto);
    text-align: center;
    float: left;
    font-size: 16px;
    color: #222;
    padding: 0 40px;
  }
}
// 作品页样式
.worked {
  @include rect (100%, auto);
  .worked_cont {
    @include rect (920px, auto);
    text-align: center;
    float: left;
    font-size: 16px;
    color: #222;
    padding: 40px;
    a {
      color: #dd3915;
      margin: 0 5px;
    }
  }
}
// 菜单页样式
// 作品页样式
.menu {
  @include rect (100%, auto);
  .menu_cont {
    @include rect (920px, auto);
    padding: 0 40px;
    overflow: hidden;
    p {
      float: left;
    }
    button {
      float: right;
    }
  }
}

// 草稿箱
.draft {
  @include rect (100%, auto);
  .draft_cont {
    @include rect (920px, auto);
    text-align: center;
    float: left;
    font-size: 16px;
    color: #222;
    padding: 0 40px;
  }
}
// 收藏页样式
.collection_list {
  @include rect(100%, auto);
  overflow: hidden;
  aside {
    @include rect(208px, 100%);
    float: left;
    background: #F5F6F5;
    h3 {
      font-size: 18px;
      font-weight: bold;
      text-align: center;
      margin: 19px 0;
      color: #222;
    }
    ul {
      padding-bottom: 20px;
      li {
        font-size: 16px;
        line-height: 48px;
        color: #666;
        height: 48px;
        cursor: pointer;
        &:hover {
          color: #222;
          background: #CCCCCC;
        }
        .active {
          color: #fff;
          background-color: #666;
        }
        span:nth-of-type(1) {
          float: left; 
          margin-left: 35px;
        }
        span:nth-of-type(2) {
          float: right; 
          margin-right: 35px;
        }
      }
    }
  }
  .right {
    @include rect(790px, 100%);
    float: right;
    ul {
      @include rect(791px, auto);
      padding: 30px 30px 30px 40px;
      li {
        padding: 15px 10px;
        @include rect(721px, 134px);
        margin-bottom: 5px;
        img {
          @include rect(140px, 106px);
          float: left;
          margin-right: 25px;
        }
        .title {
          color: #dd3915;
          font-size: 16px;
          line-height: 1.8;
          padding: 2px;
          &:hover {
            background: #dd3915;
            color: #fff;
          }
        }
        .ellipsis {
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
          max-width: 100%;
          vertical-align: top;
          font-size: 12px;
          color: #909090;
          line-height: 1.8;
        }
        .pingfen {
          font-size: 12px;
          color: #909090;
          line-height: 1.8;
          .red-font {
            color: #dd3915;
            font-weight: 700;
            font-size: 12px;
            line-height: 1.8;
          }
        }
        .gray-link {
          font-size: 12px;
          color: #909090;
          &:hover {
            background: #909090;
            color: #fff;
          }
        }
        .delete {
          display: none;
          border: none;
          background: #F5F6F5;
          font-size: 12px;
          color: #909090;
          padding: 0 2px;
          float: right;
          cursor: pointer;
          &:hover {
            background: #909090;
            color: #fff;
          }
        }
        &:hover {
          background: #f7f5f3;
          .delete {
            display: block;
          }
        }
      }
    }
  }
}
    